﻿using Snowflake.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Pay.Common.Utilitys
{
    public class IdUtil
    {
        private static IdWorker IdWorker = new IdWorker(1, 1);

        public static long NextId()
        {
            Thread.Sleep(1);
            return IdWorker.NextId();
        }
    }
}
